import {
  Http
} from '../../http-d.js'
var http = new Http();
class OrdersModel {

  getOrderList(param,success){
    var url = '/index/order/myOrder';
    http.request(url, param, function (res) {
      success(res);
    })
  }
  orderDetail(param,success){
    var url = '/index/order/orderDetail';
    http.request(url, param, function (res) {
      success(res);
    })
  }

  orderComfirm(param, success) {
    var url = '/index/order/orderComfirm';
    http.request(url, param, function (res) {
      success(res);
    })
  }
  submitOrder(param,success){
    var url = '/index/order/submitOrder';
    http.request(url, param, function (res) {
      success(res);
    })
  }
  getComment(param,success){
    var url = '/index/order/commentInit';
    http.request(url, param, function (res) {
      success(res);
    })
  }
  publish(param,success){
    var url = '/index/order/comment';
    http.request(url,param,function(res){
      success(res);
    })
  }
  voucher(param,success){
    var url = '/index/order/voucher';
    http.request(url, param, function (res) {
      success(res);
    })
  }
  commentSuccess(param,success){
    var url = '/index/order/successComment';
    http.request(url, param, function (res) {
      success(res);
    })
  }
  wxPay(param,success){
    var url = '/index/order/wxPay';
    http.request(url, param, function (res) {
      success(res);
    })
  }
  cancel(param,success){
    var url = '/index/order/cancel';
    http.request(url, param, function (res) {
      success(res);
    })
  }
  writeOff(param,success){
    var url = '/index/order/writeOff';
    http.request(url, param, function (res) {
      success(res);
    })
  }
}
export {
  OrdersModel
}